import 'package:flutter/material.dart';

class CartProvider with ChangeNotifier {
  bool _isSelectAll = false;

  bool get isSelectAll => _isSelectAll;

  double _sumMoney = 0.00;

  double get sumMoney => _sumMoney;

  void setSumMoney(double money) {
    _sumMoney = money;
    notifyListeners();
  }

  //设置 和 获取方法
  set isSelectAll(bool value) {
    _isSelectAll = value;
    notifyListeners();
  }
}
